package Second_objects;
import Second_object.Second;
public class  FirstFile extends Second
{
	String str;
	int age;
	public FirstFile()
	{

	}

	public FirstFile(String str, int age)
	{
		this.str = str;
		this.age = age;
	}

	public int add(int aa,int bb)
	{
		System.out.println("==addInt==>" + (aa + bb) );
		return 0 ;
	}

	public float add(float aa,float bb)
	{
		System.out.println("==addfloat==>" + (aa + bb) );
		return 0 ;
	}
/**打印心形的方法 
 * */
	public static String biaobai(String input)
	{
		int[] array =
		{ 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 4, 5, 2, 3, 4, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0,
				1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

		StringBuffer Num = new StringBuffer();

		for (int i = 0; i < array.length; i++)
		{

			if (i % 7 == 0)

				Num.append("\n");

			if (array[i] == 0)

				Num.append("   ");

			else if (array[i] == 4)

				Num.append("  ");

			else if (array[i] == 5)

				Num.append(" I ");

			else if (array[i] == 2)

				Num.append("Lvoe ");

			else if (array[i] == 3)

				Num.append("You");

			else

				Num.append("  " + input);

		}

		return Num.toString();
	}

	public static void main(String[] args)
	{
		System.out.println("사랑 해요");
//		System.out.println(biaobai("*"));
		FirstFile shili = new FirstFile("李善庄", 25);
		System.out.println(shili.str + shili.age);
		shili.add(3, 3);
		shili.add(8.2f, 7);
		Second waibao = new Second();
//		waibao.Protected_pro();
	}
}
